import request from '@/utils/request'

// 查询部门列表
export function serviceItem(query) {
    return request({
        url: '/pk-retirement/base-setting/service-item/list',
        method: 'get',
        params: query
    })
}

export function serviceItemSave(data) {
    return request({
        url: '/pk-retirement/base-setting/service-item/save',
        method: 'post',
        data: data
    })
}
export function serviceItemUpdata(data) {
    return request({
        url: '/pk-retirement/base-setting/service-item/update',
        method: 'put',
        data: data
    })
}

export function serviceItemDel(jobId) {
    return request({
        url: '/pk-retirement/base-setting/service-item/delete',
        method: 'delete',
        data:jobId
    })
}

export function communitySite(query) {
    return request({
        url: '/pk-retirement/community-site/community-site/list',
        method: 'get',
        params: query
    })
}

export function communitySiteSave(data) {
    return request({
        url: '/pk-retirement/community-site/community-site/save',
        method: 'post',
        data: data
    })
}
export function communitySiteUpdata(data) {
    return request({
        url: '/pk-retirement/community-site/community-site/update',
        method: 'put',
        data: data
    })
}

export function communitySiteDel(jobId) {
    return request({
        url: '/pk-retirement/community-site/community-site/delete',
        method: 'delete',
        data:jobId
    })
}

export function communitySitePersonnel(query) {
    return request({
        url: '/pk-retirement/community-site/community-site-personnel/list',
        method: 'get',
        params: query
    })
}

export function communitySitePersonnelSave(data) {
    return request({
        url: '/pk-retirement/community-site/community-site-personnel/save',
        method: 'post',
        data: data
    })
}
export function communitySitePersonnelUpdata(data) {
    return request({
        url: '/pk-retirement/community-site/community-site-personnel/update',
        method: 'put',
        data: data
    })
}
export function communitySitePersonnelDel(jobId) {
    return request({
        url: '/pk-retirement/community-site/community-site-personnel/delete',
        method: 'delete',
        data:jobId
    })
}


export function evaluationTemplate(query) {
    return request({
        url: '/pk-retirement/base-setting/evaluation-template/list',
        method: 'get',
        params: query
    })
}


export function evaluationTemplateDel(jobId) {
    return request({
        url: '/pk-retirement/base-setting/evaluation-template/delete',
        method: 'delete',
        data:jobId
    })
}


export function evaluationTemplateSave(data) {
    return request({
        url: '/pk-retirement/base-setting/evaluation-template/save',
        method: 'post',
        data: data
    })
}

export function evaluationTemplateInfo(id) {
    return request({
        url: 'pk-retirement/base-setting/evaluation-template/info/'+id,
        method: 'get',
    })
}

export function evaluationTemplateUpdate(data) {
    return request({
        url: '/pk-retirement/base-setting/evaluation-template/update',
        method: 'put',
        data: data
    })
}

export function getPositionList() {
    return request({
        url: '/system/post/getPositionList',
        method: 'get',
    })
}
